//
//  BLEConstant.m
//  BLESDKDemo
//
//  Created by 李阳 on 2018/4/5.
//  Copyright © 2018年 李阳. All rights reserved.
//

#import "BLEConstant.h"

BLEByte kByteBegin = 0x6f;
BLEByte kByteEnd = 0x8f;
BLEByte kByteQuery = 0x80;

BLECmd kCmdFinish = {0x03};

BOOL kBLELogEnable = YES;
NSTimeInterval const kNoneInterval = 0;

NSUInteger const kResponseDataStartIndex = 5;
NSUInteger const kResponseDataEndOffset = 6;

void BLEDispatchInMainQueue(void(^block)(void))
{
    dispatch_async(dispatch_get_main_queue(), block);
}
void BLEDispatchInDefaultQueue(void(^block)(void))
{
    dispatch_async(dispatch_get_global_queue(0, 0), block);
}


BLENotificationName BLECenterStateDidChangeNotification = @"BLECenterStateDidChangeNotification";
